import numpy
from listnode import ListNode
from typing import Optional,Tuple,List
def findElem(node: numpy.array, target: any) -> Optional[Tuple[int, int]]:
    for row, list_elem in enumerate(node):
        for col, elem in enumerate(list_elem):
            if elem == target:
                return row, col
    return None

def findElemInList(node: ListNode, lt: list) -> Optional[int]:
    for n, elem in enumerate(lt):
        if (node.getVal() == elem.getVal()).all():
            return n
    return None
